var APageTest={};

function pageselectCallback(page_index, jq){
    //var new_content = $('#hiddenresult div.result:eq('+page_index+')').clone();
	
	$.ajax({
		url:'apageContentAction',//页面内容action
		type:'post',
		cache:false,
		data:{pageIndex:page_index,returnPage:'developerManage',tableName:'Developer'},
		success:function(res){
			$('#Searchresult').empty().append(res);
		}
	});
    return false;
}

APageTest.GetPage=function(num_entries){
	$("#Pagination").pagination(num_entries, {
        num_edge_entries: 2,
        num_display_entries: 8,
        callback: pageselectCallback,
        items_per_page:1
  	 });
}


//得到页的数目并初始化页面
APageTest.InitPageCount=function(){
	$.ajax({
		url:'aPageIndexAction',//页码action
		type:'post',
		data:{pageDateType:'Developer'},
		cache:false,
		success:function(res){
			APageTest.GetPage(res);
		}
	});
}


$(document).ready(function(){
	APageTest.InitPageCount();
})